package com.bullbuddy.util;

import java.lang.reflect.Field;

public class ObjectUtil {

	public static void set(Object obj, String field, Object value) {
		try {
			Field f = obj.getClass().getDeclaredField(field);
			boolean acc = f.isAccessible();
			f.setAccessible(true);
			f.set(obj, value);
			f.setAccessible(acc);
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
